package com.example.administrator.myapplication;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import com.example.administrator.myapplication.util.SpSave;

/**
 * Created by Administrator on 2020/12/7.
 */

public class TwoActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_two);
        initView();
        initData();
        initEvent();
    }
    private void initView(){

    }
    private void initData(){

        String username = SpSave.getSaveString(TwoActivity.this,"username");
        String studentid = SpSave.getSaveString(TwoActivity.this,"studentid");
        Toast.makeText(TwoActivity.this,"姓名"+username+"学号"+studentid+"",Toast.LENGTH_LONG).show();
    }
    private void initEvent(){

    }
}
